<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网上银行</title>
    <!--1.引入bootstrap样式框架；-->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">

    <!--2.引入angularJS分页样式的框架；-->
    <link rel="stylesheet" href="angularjs/pagination.css">

    <link rel="stylesheet" href="layer/theme/default/layer.css">

    <!--3.引入bootstrap中的Jquery框架；-->
    <script src="bootstrap/js/jquery.min.js"></script>
    <!--4.引入bootstrap中的Js框架；-->
    <script src="bootstrap/js/bootstrap.min.js"></script>

    <!--5.引入AngularJS的JS框架-->
    <script src="angularjs/angular.min.js"></script>

    <!--6.引入AngularJS分布的JS框架-->
    <script src="angularjs/pagination.js"></script>

    <script src="layer/layer.js"></script>

    <script src="angularjs/angular-route.min.js"></script>
    <script src="angularjs/angular-animate.min.js"></script>

</head>
<body ng-app="obApp"    ng-controller="obCtrl">
<div class="">

    <!--最上方小导航栏-->
    <div ng-include=" 'onbank/obtop.html' "></div>

    <!--主要导航栏-->
    <div class="navbar navbar-default " role="navigation" style="background-color: white;height: 80px;margin-bottom: 0px;padding-top: 15px">
        <!--navbar-fixed-top-->
        <div class="navbar-header" style="padding-left: 30px;">
            <a class="navbar-brand" href="#" style="padding-top: 0px;padding-left: 150px;">
                <img alt="Brand" src="imgs/oblogo.png" width="150" height="45">
            </a>

            <a class="navbar-brand" href="#" style="padding-top: 8px">
                <img alt="Brand" src="imgs/ipv6.png" width="50" height="30">
            </a>
        </div>

        <ul class="nav navbar-nav navbar-right" style="font-size: 15px;font-family:'黑体';padding-right: 150px">
            <li ><a href="#!/home">首页</a></li>
            <li ><a href="#!/login2">产品中心</a></li>
            <li ><a href="#!/login">安全保障</a></li>
            <li ><a href="onbank/obtransfer.html">账户转账</a></li>
            <li ><a href="onbank/obdetail.html">账户详情</a></li>&nbsp;&nbsp;&nbsp;&nbsp;
        </ul>
    </div>

    <div ng-include=" 'onbank/lunbo.html' "></div>

    <div>
        <img src="imgs/zhu.png">
    </div>

</div>

<script>
    layerindex=-1;
    var app = angular.module('obApp',['pagination','ngRoute']);
    app.controller("obCtrl",function ($scope, $http) {


        var sessionStorage = window.sessionStorage;
        $scope.login=function () {

            $http.post("/wusers/users/login",$.param({uname: $scope.form.uname, upwd: $scope.form.upwd}),
                {headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'}}
            ).success(function (data) {
                if(data.code==200){
                    console.log(data.msg)
                    console.log(data)

                    layer.close(layerindex);
                    layer.msg("登录成功",{icon:6,title:"系统提示："});
                    window.location.href="/product.html";
                }else{
                    console.log(data.msg);
                }
            })
        }
    });

    $(function () {


    });

</script>
</body>
</html>